import request from '@/plugin/axios'

const getPage = params => request({ url: '/Interface/GetPage', method: 'get', data: params })
const save = params => request({ url: '/Interface/Save', method: 'post', data: params })
const remove = params => request({ url: '/Interface/Remove', method: 'post', data: params })
const getInterfaceTree = params => request({ url: '/Interface/GetInterfaceTree', method: 'get', data: params })
const getInfo = params => request({ url: '/Interface/GetInfo', method: 'get', data: params })
const interfaceTest = params => request({ url: '/Interface/InterfaceTest', method: 'post', data: params })
const copyNewVersion = params => request({ url: '/Interface/CopyNewVersion', method: 'post', data: params })
const updateProgress = params => request({ url: '/Interface/UpdateProgress', method: 'post', data: params })
export {
  getPage,
  save,
  remove,
  getInterfaceTree,
  getInfo,
  interfaceTest,
  copyNewVersion,
  updateProgress
}